﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Enter.Config
{
    /// <summary>
    /// 通用状态枚举
    /// </summary>
    public enum EnumStatus : byte
    { /// <summary>
        /// 有效
        /// </summary>
        [Description("有效")]
        Valid = 1,
        /// <summary>
        /// 无效
        /// </summary>
        [Description("无效")]
        NoValid = 0

    }

      /// <summary>
    /// 图片根类型
    /// </summary>
    public enum ImgRootType
    {
        /// <summary>
        /// 用户头像
        /// </summary>
        [Description("用户头像")]
        UserImg=1,

        /// <summary>
        /// 店铺Logo
        /// </summary>
        [Description("店铺Logo")]
        ShopLogo = 2,

        /// <summary>
        /// 商品原图片
        /// </summary>
        [Description("商品原图片")]
        product = 3,

        /// <summary>
        /// 商品列表图片
        /// </summary>
        [Description("商品列表图片")]
        product_list= 4,
        /// <summary>
        /// 商品详情展示
        /// </summary>
        [Description("商品详情展示")]
        product_info_big = 5,
        /// <summary>
        /// 商品详情展示
        /// </summary>
        [Description("商品详情展示小图")]
        product_info_small = 6,
        /// <summary>
        /// 商品颜色图
        /// </summary>
        [Description("商品颜色图")]
        product_color = 7,
        /// <summary>
        /// 商品热门排行
        /// </summary>
        [Description("商品热门排行")]
        product_hotbank = 8,

    }
    /// <summary>
    /// 商品排序条件
    /// </summary>
    public enum EnumGoodOrder : byte
    {
        /// <summary>
        /// 热评
        /// </summary>
        Comment = 0,
        /// <summary>
        /// 热卖(总销量)
        /// </summary>
        Sale=1,
        /// <summary>
        /// 点击率
        /// </summary>
        Hit,
        /// <summary>
        /// 收藏
        /// </summary>
        Collect=3,
        /// <summary>
        /// 价格
        /// </summary>
        Price=4,
       
        /// <summary>
        /// 月销量
        /// </summary>
        MonthSale=5,
        /// <summary>
        /// 发表时间
        /// </summary>
        AddTime=6,
        /// <summary>
        /// 销售时间
        /// </summary>
        SaleTime=7,
        /// <summary>
        /// 销售时间
        /// </summary>
        EndSaleTime=8,
    }
     /// <summary>
    /// 排序方式（升序、降序）
    /// </summary>
    public enum EnumOrderType : byte
    {
        Asc,
        Desc,
    }

     /// <summary>
    /// 商品排序条件
    /// </summary>
    public enum EnumProductOrder : byte
    {
       /// <summary>
        /// 价格从低到高
       /// </summary>
        [Description("价格从低到高")]
        p = 0,
        /// <summary>
        /// 价格从高到低
        /// </summary>
        [Description("价格从高到低")]
        pd = 1,
        /// <summary>
        /// 总销量从高到低
        /// </summary>
        [Description("总销量从高到低")]
        td,
        /// <summary>
        /// 月销量从高到低
        /// </summary>
        [Description("月销量从高到低")]
        d,
        /// <summary>
        /// 按发布时间排序
        /// </summary>
        [Description("按发布时间排序")]
        pt,
        /// <summary>
        /// 默认排序
        /// </summary>
        [Description("默认排序")]
        st,
    }

    public enum EnumProductPorpertyType : byte
    {
        //属性类型
        /// 库存属性
        /// </summary>
        [Description("基本属性")]
        Base = 0,
        /// <summary>
        /// 品牌
        /// </summary>
        [Description("品牌")]
        Brand = 1,
        /// <summary>
        /// 颜色
        /// </summary>
        [Description("颜色")]
        Color = 2,
        /// <summary>
        /// 尺码
        /// </summary>
        [Description("尺码")]
        Size = 3
    }
    /// <summary>
    /// 通用状态枚举
    /// </summary>
    public enum EnumOrderStatus : byte
    {

        /// <summary>
        /// 全部
        /// </summary>
        [Description("全部")]
        ALL = 0,
        /// <summary>
        /// 等待买家付款
        /// </summary>
        [Description("等待买家付款")]
        NOT_PAID = 1,
        /// <summary>
        /// 买家已付款
        /// </summary>
        [Description("买家已付款")]
        PAID = 2,
        /// <summary>
        /// 卖家已发货
        /// </summary>
        [Description("卖家已发货")]
        SEND = 3,
        /// <summary>
        /// 退款中的订单
        /// </summary>
        [Description("退款中的订单")]
        REFUNDING = 4,

        /// <summary>
        /// 交易成功
        /// </summary>
        [Description("交易成功")]
        SUCCESS = 5,
        /// <summary>
        /// 交易关闭
        /// </summary>
        [Description("交易关闭")]
        DROP = 6


    }
    public enum EnumCommentStatus : byte
    {
        /// <summary>
        /// 全部
        /// </summary>
        [Description("全部")]
        ALL = 0,
        /// <summary>
        /// 需我评价
        /// </summary>
        [Description("需我评价")]
        I_HAS_NOT_COMMENT = 1,
        /// <summary>
        /// 我已评价
        /// </summary>
        [Description("我已评价")]
        I_HAS_COMMENT = 2,
        /// <summary>
        /// 对方已评
        /// </summary>
        [Description("对方已评")]
        OTHER_HAS_COMMENT = 3,
        /// <summary>
        /// 双方已评
        /// </summary>
        [Description("双方已评")]
        ALL_COMMENT = 4
    }

    public enum EnumGoodStatus
    {
        /// <summary>
        /// 全部
        /// </summary>
        All = 0,

        /// <summary>
        /// 上架
        /// </summary>
        OnShelf = 1,
        /// <summary>
        /// 定时上架
        /// </summary>
        TimingShelf=3,
        /// <summary>
        /// 从未上架
        /// </summary>
        NoShelf=4,
        /// <summary>
        /// 下架
        /// </summary>
        OffShelf = 6,
        /// <summary>
        /// 历史
        /// </summary>
        Old=7
    }
}
